package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
   

/**
 * The persistent class for the CUSTOMER_CARE database table.
 * 
 */
@Entity
@Table(name="CUSTOMER_CARE")
@NamedQuery(name="CustomerCare.findAll", query="SELECT c FROM CustomerCare c")
public class CustomerCare implements Serializable {
	private static final long serialVersionUID = 1L;


	@Id
	@SequenceGenerator(initialValue=1,allocationSize=1,name="CUSTOMER_CARE_CCID_GENERATOR", sequenceName="SEQ_57")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CUSTOMER_CARE_CCID_GENERATOR")
	@Column(name="CC_ID")
	private long ccId;

	@Column(name="CC_CONTENT")
	private String ccContent;

	@Temporal(TemporalType.DATE)
	@Column(name="CC_CREATION_TIME")
	private Date ccCreationTime;

	@Column(name="CC_EXECUTOR")
	private String ccExecutor;

	@Column(name="CC_FEEDBACK")
	private String ccFeedback;

	@Column(name="CC_LINK_MAN")
	private String ccLinkMan;

	@Column(name="CC_REMARKS")
	private String ccRemarks;

	@Column(name="CC_THEME")
	private String ccTheme;

	@Column(name="CONNECT_ID")
	private BigDecimal connectId;

	@Column(name="CUSTOMER_ID")
	private BigDecimal customerId;

	@Column(name="CUSTOMER_NAME")
	private String customerName;

	//bi-directional many-to-one association to CareType    
	@ManyToOne
	@JoinColumn(name="CC_CATEGORY")
	private CareType careType;

	public CustomerCare() {
	}    

	public long getCcId() {
		return this.ccId;
	}

	public void setCcId(long ccId) {
		this.ccId = ccId;
	}

	public String getCcContent() {
		return this.ccContent;
	}

	public void setCcContent(String ccContent) {
		this.ccContent = ccContent;
	}

	public Date getCcCreationTime() {
		return this.ccCreationTime;
	}

	public void setCcCreationTime(Date ccCreationTime) {
		this.ccCreationTime = ccCreationTime;
	}

	public String getCcExecutor() {
		return this.ccExecutor;
	}

	public void setCcExecutor(String ccExecutor) {
		this.ccExecutor = ccExecutor;
	}

	public String getCcFeedback() {
		return this.ccFeedback;
	}

	public void setCcFeedback(String ccFeedback) {
		this.ccFeedback = ccFeedback;
	}

	public String getCcLinkMan() {
		return this.ccLinkMan;
	}

	public void setCcLinkMan(String ccLinkMan) {
		this.ccLinkMan = ccLinkMan;
	}

	public String getCcRemarks() {
		return this.ccRemarks;
	}

	public void setCcRemarks(String ccRemarks) {
		this.ccRemarks = ccRemarks;
	}

	public String getCcTheme() {
		return this.ccTheme;
	}

	public void setCcTheme(String ccTheme) {
		this.ccTheme = ccTheme;
	}

	public BigDecimal getConnectId() {
		return this.connectId;
	}

	public void setConnectId(BigDecimal connectId) {
		this.connectId = connectId;
	}

	public BigDecimal getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(BigDecimal customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public CareType getCareType() {
		return this.careType;
	}

	public void setCareType(CareType careType) {
		this.careType = careType;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "CustomerCare [ccId=" + ccId + ", ccContent=" + ccContent + ", ccCreationTime=" + ccCreationTime
				+ ", ccExecutor=" + ccExecutor + ", ccFeedback=" + ccFeedback + ", ccLinkMan=" + ccLinkMan
				+ ", ccRemarks=" + ccRemarks + ", ccTheme=" + ccTheme + ", customerName=" + customerName + "]";
	}

	public CustomerCare(long ccId, String ccContent, Date ccCreationTime, String ccExecutor, String ccFeedback,
			String ccLinkMan, String ccRemarks, String ccTheme, String customerName) {
		super();
		this.ccId = ccId;
		this.ccContent = ccContent;
		this.ccCreationTime = ccCreationTime;
		this.ccExecutor = ccExecutor;
		this.ccFeedback = ccFeedback;
		this.ccLinkMan = ccLinkMan;
		this.ccRemarks = ccRemarks;
		this.ccTheme = ccTheme;
		this.customerName = customerName;
	}

	public CustomerCare(String ccContent, Date ccCreationTime, String ccExecutor, String ccFeedback, String ccLinkMan,
			String ccRemarks, String ccTheme, String customerName) {
		super();
		this.ccContent = ccContent;
		this.ccCreationTime = ccCreationTime;
		this.ccExecutor = ccExecutor;
		this.ccFeedback = ccFeedback;
		this.ccLinkMan = ccLinkMan;
		this.ccRemarks = ccRemarks;
		this.ccTheme = ccTheme;
		this.customerName = customerName;
	}
  
	
	
	
	

}